﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Password Reset
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <% if (!ViewData["PasswordReset"].AsBool()) { %>

        <%= Html.ValidationSummary("Errors have occured:") %>

        <p>Please enter your email address below and a new password will be generated and sent to you.</p>

        <% using (Html.BeginForm())
           {%>
            <fieldset>
                <div>
                    <label for="email">Email Address:</label>
                    <input type="text" name="email" id="email" />
                </div>
                <div class="commands">
                    <input type="submit" value="Reset Password" />
                </div>
            </fieldset>
        <% } %>

    <% } else { %>

        <p class="success-message">A new password has been sent to the email address entered.</p>

    <% } %>

</asp:Content>

